package com.guoxin.thread.concurrent.chapter8;

public class DeadLockTest {
    public static void main(String[] args) {
        OtherService otherService = new OtherService();
        DeadLock deadLock = new DeadLock(otherService);
        otherService.setDeadLock(deadLock);

        new Thread(() -> deadLock.m1()).start();

        new Thread(() -> otherService.s2()).start();
    }
}
